package com.nttuan.model.entity;

import java.util.Date;

/**
 * Created by NT Tuan on 10/25/2014.
 */
public class FreeTime {
    public static final String START = "start";
    public static final String DURING = "during";

    private Date from;
    private int during;
    private Task previousTask;
    private Task nextTask;

    public FreeTime() {
    }

    public FreeTime(Date from, int during, Task previousTask, Task nextTask) {
        this.from = from;
        this.during = during;
        this.previousTask = previousTask;
        this.nextTask = nextTask;
    }

    public Date getFrom() {
        return from;
    }

    public void setFrom(Date from) {
        this.from = from;
    }

    public int getDuring() {
        return during;
    }

    public void setDuring(int during) {
        this.during = during;
    }

    public Task getNextTask() {
        return nextTask;
    }

    public void setNextTask(Task nextTask) {
        this.nextTask = nextTask;
    }

    public Task getPreviousTask() {
        return previousTask;
    }

    public void setPreviousTask(Task previousTask) {
        this.previousTask = previousTask;
    }
}
